EPrints Technical Mailing List Archive
Message: #04468
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Edit 'Latest Additions' page
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Edit 'Latest Additions' page
- From: Michael Street <mstreet@yorku.ca>
- Date: Thu, 9 Jul 2015 15:42:50 -0400
Hi,
-----eprints-tech-bounces@ecs.soton.ac.uk wrote: -----
From: John Salter
Sent by: eprints-tech-bounces@ecs.soton.ac.uk
Date: 07/07/2015 05:08AM
Subject: [EP-tech] Re: Edit 'Latest Additions' page
Hi Mike,
The code that is called is ~/cgi/latest
Instead of editing the copy there, make a copy:
~/archives/ARCHIVEID/cgi/latest
Look for the line:
my $date = time() - 86400 * 7; # 7 days
you can change that to suit.
You’ll also need to change the line that starts:
for( my $d=0; $d<7; ++$d )
- which steps through the number of days and creates a section for each one.
There is also the ~/cgi/latest_tool script.
This reads the ‘latest_tool_modes’ from the archive config, which my default is in ~/archives/ARCHIVEID/cfg/cfg.d/latest_tool.pl
You can do some useful things with this – as it allows you to specify a specific citation style to use, and to create a named mode that can be a filtered subset
of items – e.g. you could create a subject- or division-specific ‘latest’ list – and create a citation style that embeds Altmetrics in it.
Cheers,
John
From:
eprints-tech-bounces@ecs.soton.ac.uk [mailto:eprints-tech-bounces@ecs.soton.ac.uk]
On Behalf Of Michael Street
Sent: 06 July 2015 21:55
To: eprints-tech@ecs.soton.ac.uk
Subject: [EP-tech] Edit 'Latest Additions' page
Hi,
Can someone point me to where I can edit the 'Latest Additions' to configure it go back further in time?
Thanks,
Mike
*** Archive: http://www.eprints.org/tech.php/
*** EPrints community wiki: http://wiki.eprints.org/
*** EPrints developers Forum: http://forum.eprints.org/
- Follow-Ups:
- [EP-tech] Re: Edit 'Latest Additions' page
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Edit 'Latest Additions' page
- References:
- [EP-tech] Bulk export/import
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Re: Bulk export/import
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: George Mamalakis <mamalos@eng.auth.gr>
- [EP-tech] Re: Bulk export/import
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: Adam Field <af05v@ecs.soton.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Re: Bulk export/import
- From: "Alan.Stiles" <alan.stiles@open.ac.uk>
- [EP-tech] Edit 'Latest Additions' page
- From: Michael Street <mstreet@yorku.ca>
- [EP-tech] Re: Edit 'Latest Additions' page
- From: John Salter <J.Salter@leeds.ac.uk>
- [EP-tech] Bulk export/import
- Prev by Date: [EP-tech] DataObj->render_citation options
- Next by Date: [EP-tech] Re: Edit 'Latest Additions' page
- Previous by thread: [EP-tech] Re: Edit 'Latest Additions' page
- Next by thread: [EP-tech] Re: Edit 'Latest Additions' page
- Index(es):